<script  src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
	<script type="text/javascript">
	$(function() {
	var addDiv = $('#addinput');
	var i = $('#addinput p').size() + 1;
 
	$('#addNew').live('click', function() {
	$('<p><input type="text" id="p_new" size="40" name="p_new_' + i +'" value="" placeholder="I am New" /><a href="#" id="remNew">Remove</a> </p>').appendTo(addDiv);
	i++;
	 
	return false;
	});
	
	 
	$('#remNew').live('click', function() {
	if( i > 2 ) {
	$(this).parents('p').remove();
	i--;
	}
	return false;
	});
	});
	 
	</script>
	
	<script type="text/javascript">
	$(function() {
	var addDiv2 = $('#addinput2');
	var i = $('#addinput2 p').size() + 1;
 
	$('#addNew2').live('click', function() {
	$('<p><input type="text" id="p_new" size="40" name="p_new_' + i +'" value="" placeholder="I am New" /><a href="#" id="remNew2">Remove</a> </p>').appendTo(addDiv2);
	i++;
	 
	return false;
	});
	
	 
	$('#remNew2').live('click', function() {
	if( i > 2 ) {
	$(this).parents('p').remove();
	i--;
	}
	return false;
	});
	});
	 
	</script>
	
	<script type="text/javascript">
	$(function() {
	var addDiv3 = $('#addinput3');
	var i = $('#addinput3 p').size() + 1;
 
	$('#addNew3').live('click', function() {
	$('<p><input type="text" id="p_new" size="40" name="p_new_' + i +'" value="" placeholder="I am New" /><a href="#" id="remNew3">Remove</a> </p>').appendTo(addDiv3);
	i++;
	 
	return false;
	});
	
	 
	$('#remNew3').live('click', function() {
	if( i > 2 ) {
	$(this).parents('p').remove();
	i--;
	}
	return false;
	});
	});
	 
	</script>



<table>
<?php echo form_open(current_url()) ?>

<tr><td>Name: </td><td><input type="text" name="" placeholder="name..."/></td></tr>
<tr><td>Designation: </td><td>
<select><option>-- Select Designation -- </option>
	<?php foreach($query as $row){ ?>
<option><?= $row->name; ?></option>
<?php }?>
</select>
										
	</td></tr>
<tr><td>Efficiency: </td>
	<td><input type="text" name="" placeholder="Developer in %..."/></td></tr>
	<tr><td></td>
	<td>	<div id="addinput">
	<p>
	<input type="text" id="p_new" size="20" name="p_new" value="" placeholder="New Efficiency" /><a href="#" id="addNew">Add</a>
	</p>
	</div></td></tr>
	
<tr><td>Skills: </td>
	<td><input type="text" placeholder="skill1 in %.."/></td></tr>
	<tr><td></td>
	<td><input type="text" placeholder="skill2 in %.."/></td></tr>
	<tr><td></td>
	<td><input type="text" placeholder="skill3 in %.."/></td></tr>
	<tr><td></td>
	<td><div id="addinput2">
	<p>
	<input type="text" id="p_new" size="20" name="p_new" value="" placeholder="New Efficiency" /><a href="#" id="addNew2">Add</a>
	</p>
	</div></td>
</tr>
<tr><td>Tools:</td>
	<td><input type="text" placeholder="tool1 in %.."/></td></td></tr>
	<tr><td></td>
	<td><input type="text" placeholder="tool2 in %.."/></td></td></tr>
	<tr><td></td>
	<td><input type="text" placeholder="tool3 in %.."/></td></td></tr>
	<tr><td></td>
	<td><div id="addinput3">
	<p>
	<input type="text" id="p_new" size="20" name="p_new" value="" placeholder="New Tools" /><a href="#" id="addNew3">Add</a>
	</p>
	</div></td></td></tr>
	<tr><td>Hobbies:</td>
	<td><select> <option>-- Select Hobbies -- </option>
	<?php foreach($query2 as $row){ ?>
	<option><?= $row->name; ?></option>
	<?php }?>
	</select></td></tr>
	<tr><td></td><td><input type="submit" name="" value="Add"/></td></tr>

</form>
</table>


